﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Cgd.Shell.RssService
{
	/// <summary>
	/// 为EventLog提供扩展功能。
	/// </summary>
	public static class LogUtility
	{
		public static void WriteInformation(this EventLog log, string message)
		{
			log.WriteEntry(message, EventLogEntryType.Information);
		}

		public static void WriteWarning(this EventLog log, string message)
		{
			log.WriteEntry(message, EventLogEntryType.Warning);
		}

		public static void WriteError(this EventLog log, string message)
		{
			log.WriteEntry(message, EventLogEntryType.Error);
		}
	}
}
